﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Data;

namespace eTMS.UpdateServices
{
    [ServiceContract]
    public interface IUpdateService
    {
        [OperationContract]
         string GetFilesPath();
        [OperationContract]
        DataSet GetAllUpdateableComponents();
        [OperationContract]
        DataSet GetUpdateDataSet();
        [OperationContract]
        void EnableUpdate(string path);
        [OperationContract]
        void DeleteFile(List<string> lspath);
        [OperationContract]
        void SaveComponents(byte[] buff, bool isAppend, bool isFinish, string fileName);
        [OperationContract]
        int GetPacketCount(string fileName);
        [OperationContract]
        byte[] GetComponents(int partindex, string fileName);

        [OperationContract]
        void StopServer();
        [OperationContract]
        void StartServer();
        [OperationContract]
        void SaveServerService(byte[] buff, bool isAppend, bool isFinish, string fileName);
    }
}
